package com.lck.blogmanager.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lck.blogmanager.entity.QuestionEntity;
import com.lck.blogmanager.req.*;
import com.lck.blogmanager.res.*;

public interface QuestionService extends IService<QuestionEntity> {

    Integer addQuestion(AddQuestionReq req);

    void updateQuestion(UpdateQuestionReq req);

    void deleteQuestion(DeleteQuestionReq req);

    Page<PageQuestionRes> pageQuestion(PageQuestionReq req);

    DetailQuestionRes detailQuestion(Integer questionId);

    void auditQuestion(AuditQuestionReq req);

    Page<UserQuestionListRes> userList(UserQuestionListReq req);

    Page<PageQuestionRes> userCenterPageQuestion(PageQuestionReq req);

    void likeQuestion(Integer questionId);

    void collectQuestion(Integer questionId);

    QuestionUserDetailRes userDetail(Integer questionId);
}
